How do I define a method that will return a number between 0 and 315 by multiples of 45?