coded the functionality of birthday