How a homemade telescope works