restart the computer holding down the command+R keys, this boots you to the internet recovery
once booted to this if you look on the main menu bar you will see the word utilities (not mac os x utilities) click on this
choose terminal from the drop down menu which will open a small window that already has text in it
type the words resetpassword all together w/ no space between and in lower case letters then hit return
this will open the password reset window
under volume choose mac HD
select your name from the list of users
type in the new password 2 times in the spaces provided and hint if you want one then click on save
hit the red circles on this window and the terminal window
restart the mac and at login window use the new password
you will get message regarding the login keychain choose the option to create new keychain and it will be reset! 🙂